$(function(){
	$('#allmap').css({
		width:$(window).width(),
		height:$(window).height(),
		'overflow': 'hidden',
		})

	loadJScript();  //异步加载地图
})

//百度地图API功能
function loadJScript() {
	var script = document.createElement("script");
	script.type = "text/javascript";
	script.src = "http://api.map.baidu.com/api?v=2.0&ak=8tqYFqNpfzPKV08NGFRo1RFi&callback=init";
	document.body.appendChild(script);
}
function init() {
	var map = new BMap.Map("allmap");            
	var point = new BMap.Point(114.127747,22.545319); 
	map.centerAndZoom(point,15);                 
	map.enableScrollWheelZoom(); 
             
}


 